package com.kfc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vo.User;

import com.kfc.dao.UserDao;
import com.kfc.service.UserService;
@Service("sm")
public class UserServiceImpl implements UserService {
	@Autowired(required=true)
	private UserDao ud;

	@Override
	public User login(String userName, String password) {
		return ud.queryUser(userName, password);
	}

	@Override
	public int regist(User user) {
		return ud.addUser(user);
	}

}
